//
//  error.h
//  define error messages
//
//  Created by Pei Liu on 10/25/11.
//  Copyright 2011 For CS440. All rights reserved.
//  Define all erro messages

#ifndef _error_h
#define _error_h

#define EMPTY_STACK_ERR     "ERR 1: EMPTY STACK.\n"
#define STACK_OVERFLOW_ERR  "ERR 2: STACK OVERFLOW.\n"
#define FILE_CANT_OPEN_ERR  "ERR 3: INVALID FILE! _%s\n"
#define SYMBOLTBL_FAIL_ERR  "ERR 4: CREATE SYMBOLTBL FAIL!\n"
#define LEX_ERR             "ERR 5: At line %d, Lexical Error: _%s.\n"
#define PARSE_ERR           "ERR 6: At line %d, Parse Error.\n"
#define SYMBOL_NDEFINE_ERR  "ERR 7: At line %d, Symbol NOT Defined. ID: _%s\n"
#define NAME_CONFLICT_ERR   "ERR 8: At line %d, Name Conflict! ID: _%s\n"
#define TYPE_CONFLICT_ERR   "ERR 9: At line %d, Type NOT Compatiable. ID: _%s\n"
#define SEG_ERR             "ERR 10: At line %d, Segmentation error. ID: _%s\n"

#endif
